#-*-coding: utf-8 -*_#开发团队
# E-Mail: cq30@foxmail.com
# 开发时间 : 2021/10/10 19:27
# @auther: CQ-PRO
# Origin :崔强 2019110504 

import scipy.stats
import numpy as np
P = 32/400
N,n = 5000,400
A = np.sqrt(P*(1-P)/n)*np.sqrt((N-n)/(N-1))
print("置信区间为:(%.4f,%.4f)"%(P-1.64*A,P+1.64*A))
